package com.weitu.emergency.mapper;

import com.weitu.emergency.entity.EmergencyVehicle;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-05-10
 */
public interface EmergencyVehicleMapper {

    /**
     * 分页查询 应急车辆
     *
     * @param paramMap 应急车辆
     * @return 应急车辆集合
     */
    List<EmergencyVehicle> findByParam(Map paramMap);

    /**
     * 分页查询 应急车辆数量
     *
     * @param paramMap 应急车辆
     * @return 应急车辆集合数量
     */
    Integer findByParamCount(Map paramMap);

    /**
     * 根据Id 查询
     *
     * @param id 主键
     * @return 应急车辆
     */
    EmergencyVehicle findById(@Param("id") String id);

    /**
     * 添加 应急车辆
     *
     * @param emergencyVehicle 应急车辆
     * @return 插入结果
     */
    Integer add(EmergencyVehicle emergencyVehicle);

    /**
     * 修改应急车辆
     *
     * @param emergencyVehicle 应急车辆
     * @return 插入结果
     */
    Integer updateById(EmergencyVehicle emergencyVehicle);
    Integer deleteById(Map paramMap);

}
